package com.aaa.day113.demo4;

import java.util.function.Function;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月03日10:56
 */
public class TestFunction {
    public static void main(String[] args) {
        Function<String,Integer>function=item-> item.length();
        fun(function,"aaaaa");
    }
    public static void fun(Function<String,Integer>function,String string){
        Integer apply= function.apply(string);
        System.out.println("apply = " + apply);
    }
}
